package com.heartech.prediciton_wx.controller.wxparameter;


import com.heartech.prediciton_wx.constant.WxCode;
import com.heartech.prediciton_wx.service.qrcode.QrCodeImageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/wxpublic")
public class QrcodeController {
    @Autowired
    private QrCodeImageService qrCodeImageService;
    @GetMapping("/qrcode_imgae/")
    public void getQrImage(@RequestParam String ticket) {
        String url = WxCode.get_ticket;
        qrCodeImageService.getAndSaveQRCodeImage(ticket);
    }
}
